home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
os2
/
memsz313.zip
/
CHINESE.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-01-17
|
3KB
|
148 lines
/* CHINESE.CMD: Ñ╬ñññσªw╕╦ MemSizeíC */
'@Echo Off'
'CHCP 950'
/* Load REXXUTIL */
Call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
Call SysLoadFuncs
/* Initialize */
Signal On Failure Name FAILURE
Signal On Halt Name HALT
Signal On Syntax Name SYNTAX
Call SysCls
Say 'ªw╕╦ MEMSIZE ññ...'
Say ''
/* Verify the existence of the various component files. */
Language = 'CHINESE'
Result = SysFileTree( 'MEMSIZE.EXE', 'Files', 'F' )
If Files.0 = 0 Then
Do
Say '┐∙ ╗~: ºΣñú¿∞ MEMSIZE.EXE └╔!'
Signal DONE
End
Result = SysFileTree( Language".DLL", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say '┐∙ ╗~: ºΣñú¿∞ 'Language'.DLL └╔!'
Signal DONE
End
Result = SysFileTree( Language".HLP", 'Files', 'F' )
If Files.0 = 0 Then
Do
Say '┐∙ ╗~: ºΣñú¿∞ 'Language'.HLP └╔!'
Signal DONE
End
/* Ask for the target directory name. */
Say '╜╨┐ΘñJ▒z╖Q▒Nªw╕╦ MEMSIZE ¬║║╧║╨Ñ╪┐² (ñ║⌐w¡╚¼░ C:\OS2\APPS):'
Parse Pull Directory
If Directory = "" Then Directory = 'C:\OS2\APPS'
/* Create the target directory if necessary. */
Result = SysFileTree( Directory, 'Dirs', 'D' )
If Dirs.0 = 0 Then
Do
Result = SysMkDir( Directory )
if Result == 0 Then
Do
End
Else
Do
Say '┐∙ ╗~: ╡L¬k½╪Ñ▀Ñ╪╝╨Ñ╪┐²íC'
Signal DONE
End
End
Say ''
/* Ask for the target folder. */
Say '▒z╖Qªw╕╦ªb▒╥░╩╕Ω«╞º¿ññ╢▄? (Y/N)'
Pull YesNo
If YesNo = "Y" Then
Do
Folder = '<WP_START>'
Say '¬½Ñ≤╖|│Q⌐±╕m⌐≤▒╥░╩╕Ω«╞º¿ññíC'
End
Else
Do
Folder = '<WP_DESKTOP>'
Say '¬½Ñ≤╖|│Q⌐±╕m⌐≤«α¡▒ñWíC'
End
Say ''
/* Destroy the old object, if present. */
Call SysDestroyObject( '<MEMSIZE>' )
Call SysSleep( 5 )
/* Perform the installation. */
Say 'Ñ┐ªb▒N MEMSIZE ╜╞╗s¿∞ ' Directory '...'
Copy MEMSIZE.EXE Directory '1>NUL'
Copy Language".DLL" Directory"\MEMSIZE.DLL" '1>NUL'
Copy Language".HLP" Directory"\MEMSIZE.HLP" '1>NUL'
Copy Language".DOC" Directory"\MEMSIZE.DOC" "1>NUL"
Result = SysFileTree( "HLP2INF.EXE", 'Files', 'F' )
If Files.0 > 0 Then
Do
Result = SysFileTree( Directory"\MEMSIZE.INF", 'Files', 'F' )
If Files.0 > 0 Then
Do
"Erase" Directory"\MEMSIZE.INF"
End
"HLP2INF" Directory"\MEMSIZE.HLP"
End
Result = SysFileTree( "SNAPSHOT.EXE", 'Files', 'F' )
If Files.0 > 0 Then
Do
Copy "SNAPSHOT.EXE" Directory"\SNAPSHOT.EXE" '1>NUL'
End
Say '½╪Ñ▀╡{ªí¬½Ñ≤ññ...'
Type = 'WPProgram'
Title = '¿t▓╬╕Ω╖╜║╩╡°╛╣'
Parms = 'OPEN=DEFAULT;MINWIN=DESKTOP;PROGTYPE=PM;EXENAME='Directory'\MEMSIZE.EXE;STARTUPDIR='Directory';OBJECTID=<MEMSIZE>;NOPRINT=YES;'
Result = SysCreateObject( Type, Title, Folder, Parms, 'ReplaceIfExists' )
If Result = 1 Then
Say '¬½Ñ≤½╪Ñ▀º╣ª¿! ñjÑ\ºiª¿íC'
Else
Say '┐∙ ╗~: ╡L¬k½╪Ñ▀¬½Ñ≤íC'
Signal DONE
FAILURE:
Say 'REXX Ñó▒╤íC'
Signal DONE
HALT:
Say 'REXX ░▒ñεíC'
Signal DONE
SYNTAX:
Say 'REXX ╗y¬k┐∙╗~íC'
Signal DONE
DONE:
Exit